package br.ufrj.dcc.comp2.musica.vista;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;

import br.ufrj.dcc.comp2.musica.controle.Boletim;
import br.ufrj.dcc.comp2.musica.controle.ControleCardLayout;
import br.ufrj.dcc.comp2.musica.controle.Crid;

public class PainelRelatoriosAluno extends JTabbedPane {

	private JPanel painelCrid;
	private JPanel painelBoletimEscolar;
	private JTextArea crid, boletim;
	private ControleCardLayout controleCardLayout;

	public ControleCardLayout getControleCardLayout() {
		return controleCardLayout;
	}

	public PainelRelatoriosAluno(ControleCardLayout controleCardLayout) {
		crid = new JTextArea();
		boletim = new JTextArea();
		painelCrid = new JPanel();
		new Crid(crid);
		new Boletim(boletim);
		painelBoletimEscolar = new JPanel();
		this.controleCardLayout = controleCardLayout;
		this.setBorder(BorderFactory.createTitledBorder("Relatorios"));

		painelCrid.add(crid);
		painelBoletimEscolar.add(boletim);

		this.addTab("CRID", painelCrid);
		this.addTab("Boletim", painelBoletimEscolar);

	}
}
